package com.zhida84.Impl;

import com.zhida84.Dao.CommentDao;
import com.zhida84.Dao.DBSQL;
import com.zhida84.Entity.Comment;

public class CommentImpl implements CommentDao {
	DBSQL db = new DBSQL();

	@Override
	public int addComment(Comment comment) {
		String strQuery = "insert into comment(commentStr) value(?)";
		return db.getUpdate(strQuery, new Object[] { comment.getCommentStr() });
	}

}
